import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = params => axios.post(`${SERVER.WHOLESALES}/bigCustomer/queryList`, params);
// 查询详情
export const getDetail = params => axios.get(`${SERVER.WHOLESALES}/bigCustomer/queryBigCustomerById`, { params });
//根据证件号匹配SAP客户编号
export const matchingSapCustomerNo = params => axios.get(`${SERVER.WHOLESALES}/bigCustomer/matchingSapCustomerNo`, { params });
//绑定的SAP客户编号
export const bindSapCustomerNo = params => axios.post(`${SERVER.WHOLESALES}/bigCustomer/bindSapCustomerNo`, params);
//查询车系
export const queryAllSeries = () => axios.get(`${SERVER.WHOLESALES}/baseData/queryAllSeries`);
//查询车型
export const queryAllModelBySeries = params => axios.get(`${SERVER.WHOLESALES}/baseData/queryAllModelBySeriesId`, { params });
// 保存大客户报备信息  
export const saveBigCustomer = params => axios.post(`${SERVER.WHOLESALES}/bigCustomer/saveBigCustomer`, params);
// 提交大客户报备信息   
export const submitBigCustomer = params => axios.post(`${SERVER.WHOLESALES}/bigCustomer/submitBigCustomer`, params);
// 删除大客户报备信息   
export const deleteBigCustomer = params => axios.post(`${SERVER.WHOLESALES}/bigCustomer/deleteBigCustomer`, params);

